//
//  HWfulikongzhqiViewController.m
//  HWanGame
//
//  Created by 陈道斌 on 2021/1/28.
//  Copyright © 2021 Chendaobin. All rights reserved.
//

#import "HWfulikongzhqiViewController.h"
#import "UIBarButtonItem+Item.h"
@interface HWfulikongzhqiViewController ()

@end

@implementation HWfulikongzhqiViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
     self.navigationItem.leftBarButtonItem = [UIBarButtonItem  backItemWithimage:[UIImage imageNamed:@"fanhui"] highImage:[UIImage imageNamed:@"fanhui"] target:self action:@selector(back) title:@"   "];
    
    self.navigationItem.title = @"福利"; 
    self.miaoshuleishezbilabel.text = self.neironStr;
    self.neironggaoshezhi.constant = self.miaoshuleishezbilabel.bottom+10;
    
    
    
    
    CGSize titleSize = [self.miaoshuleishezbilabel.text boundingRectWithSize:CGSizeMake(self.miaoshuleishezbilabel.frame.size.width-20, MAXFLOAT) options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName:[UIFont systemFontOfSize:14]} context:nil].size;
      //根据备注内容多少，修改view高度
    self.neironggaoshezhi.constant  = titleSize.height + 10;
    
    

    
}


- (void)back {
    
    [self.navigationController popViewControllerAnimated:YES];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
